import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: resolve => require(['@/components/page/login/Login.vue'], resolve)
    },
    {
      path: '/HomePage',
      component: resolve => require(['@/components/common/Home.vue'], resolve),
      children: [
        {path: '/', name: '欢迎页', component: resolve => require(['@/components/page/homePage/LoginHomePage.vue'], resolve),meta:{requireAuth: true }},
        {path: '/ChangePass', name: '修改密码', component: resolve => require(['@/components/page/login/ChangePass.vue'], resolve),meta:{requireAuth: true }},
        {path: '/UserManager', name: '平台用户管理', component: resolve => require(['@/components/page/authorityManagement/UserManager.vue'], resolve),meta:{requireAuth: true }},
        {path: '/RoleManager', name: '角色管理', component: resolve => require(['@/components/page/authorityManagement/RoleManager.vue'], resolve),meta:{requireAuth: true }},
        {path: '/MemberInfo', name: '会员信息', component: resolve => require(['@/components/page/memberManagement/MemberInfo.vue'], resolve),meta:{requireAuth: true }},
        {path: '/CertificationInfo', name: '认证信息', component: resolve => require(['@/components/page/memberManagement/CertificationInfo.vue'], resolve),meta:{requireAuth: true }},
        {path: '/UserFeedback', name: '用户反馈', component: resolve => require(['@/components/page/memberManagement/UserFeedback.vue'], resolve),meta:{requireAuth: true }},
        {path: '/BorrowOrder', name: '借款订单', component: resolve => require(['@/components/page/borrowManagement/BorrowOrder.vue'], resolve),meta:{requireAuth: true }},
        {path: '/LoanOrder', name: '放款订单', component: resolve => require(['@/components/page/borrowManagement/LoanOrder.vue'], resolve),meta:{requireAuth: true }},
        {path: '/RefundOrder', name: '还款订单', component: resolve => require(['@/components/page/postLoanManagement/RefundOrder.vue'], resolve),meta:{requireAuth: true }},
        {path: '/OverdueOrder', name: '逾期订单', component: resolve => require(['@/components/page/postLoanManagement/OverdueOrder.vue'], resolve),meta:{requireAuth: true }},
        {path: '/MenuManager', name: '菜单管理', component: resolve => require(['@/components/page/systemManagement/MenuManager.vue'], resolve),meta:{requireAuth: true }},
        {path: '/LogManager', name: '日志管理', component: resolve => require(['@/components/page/systemManagement/LogManager.vue'], resolve),meta:{requireAuth: true }},
        {path: '/DictManager', name: '字典管理', component: resolve => require(['@/components/page/systemManagement/DictManager.vue'], resolve),meta:{requireAuth: true }},
        {path: '/Consultation', name: '公告管理', component: resolve => require(['@/components/page/newsManagement/Consultation.vue'], resolve),meta:{requireAuth: true }},
        {path: '/TaskList', name: '定时列表', component: resolve => require(['@/components/page/timerManagement/TaskList.vue'], resolve),meta:{requireAuth: true }},
        {path: '/ExecutionRecords', name: '执行记录', component: resolve => require(['@/components/page/timerManagement/ExecutionRecords.vue'], resolve),meta:{requireAuth: true }},
        {path: '/GetChannelList', name: '渠道数据', component: resolve => require(['@/components/page/channelManagement/ChannelMannger.vue'], resolve),meta:{requireAuth: true }},
        {path: '/Data', name: '数据管理', component: resolve => require(['@/components/page/DataManagement/Data.vue'], resolve),meta:{requireAuth: true }}

      ]
    }
  ]
})

